package com.aji.service;


import com.aji.dto.ElementAddDto;
import com.aji.dto.ElementChangeDto;
import com.aji.dto.ElementDto;
import com.aji.result.PageResult;
import com.aji.vo.*;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface ElementService {
    PageResult pageQuery(ElementDto elementDto,int page,int pageSize);

    void deleteByIds(List<Integer> ids);

    void add(ElementAddDto elementAddDto);

    void upDate(ElementChangeDto elementChangeDto,int id);

    ElementByIdVoDdd selectById(int id);

    List<ElementVo> selectCon(ElementDto elementDto);

    void trainEle(List<Integer> modelIds) throws IOException, InterruptedException;

    ResponseEntity<List<ElementRunVo>> testEle(List<Integer> modelIds, List<Integer> ids)throws IOException, InterruptedException;

    void addBatch(List<ElementAddDto> elementAddDtoList);

    ElementByIdVo selectByIdNew(int id);

    ResponseEntity<List<ElementBatchVo>> uploadFile(MultipartFile file);
}
